<% add_decidim_page_title(edit_questionnaire_title) %>
<div class="item_show__header">
  <h1 class="item_show__header-title">
    <%= edit_questionnaire_title %>
    <% if questionnaire.responses.any? %>
      <div class="button--title">
        <%= export_dropdown(current_component, questionnaire.id) if allowed_to?(:export_responses, :questionnaire) %>
      </div>
    <% else %>
      <button class="button button__sm button__secondary" disabled><%= t("empty", scope: "decidim.forms.admin.questionnaires.responses") %></button>
    <% end %>
  </h1>
</div>

<div class="flash warning"><%= t("deprecation_warning_polls_html", scope: "decidim.meetings.admin") %></div>

<div class="item__edit item__edit-1col">
  <div class="item__edit-form">
    <%= decidim_form_for(@form, url: update_url, method: :put, html: { class: "form-defaults form edit_questionnaire" }) do |form| %>
      <%= render partial: "decidim/meetings/admin/poll/form", object: form %>

      <div class="item__edit-sticky">
        <div class="item__edit-sticky-container">
          <%= form.submit t("save", scope: "decidim.forms.admin.questionnaires.edit"), class: "button button__sm button__secondary" %>
        </div>
      </div>
    <% end %>
  </div>
</div>
